class eventHandle {
	constructor (binding) {
		this.modifiers = binding.modifiers;
		this.value = binding.value;
	}

	handle (event) {
		if (this.modifiers && this.modifiers.prevent) {
			event.preventDefault();
		}

		if (this.modifiers && this.modifiers.stop) {
			event.stopPropagation();
		}

		if (this.value) {
			this.value();
		}
	}
}

export default eventHandle;
